<!DOCTYPE HTML>
<html>
	<head>
		<title>Topranking.cn-中国自媒体排行榜</title>

		<link rel="stylesheet" type="text/css" href="/skin/css/reset.css" />
		<link rel="stylesheet" type="text/css" href="/skin/css/layout.css" />
		<link rel="stylesheet" type="text/css" href="/skin/css/fina.css" />
		<link rel="stylesheet" type="text/css" href="/skin/css/feature.css" />
		<script src="/skin/js/jquery-2.0.3.min.js"></script>
		<!--script src="/skin/js/tools.js"></script-->
		<!--script src="/skin/js/ui.js"></script-->
		<script src="/skin/js/reui.js"></script>


	</head>
	<body>
		

<style>
body{overflow: hidden;}
.login-form{background: url(/passport/img/admin400.png) no-repeat;background-position: 550px 0px;;background-color:#fff;}

.tips{color:red;display:inline-block;margin-left:10px;}
.n-form{background-color: #f9f9f9;}
.n-form dt{width:100px;}
.n-form dd{margin-left:110px;}
</style>
<div class="n-middle n-max-width">
	<div class="login-form">
		<div style="float:right;margin:400px 150px 0px 0px;">
			<!--span style="font-size:24px;line-height:80px;color:#000;">
				种树、浇水、开花结果¥
			</span-->
		</div>
		<form method="post" action="" onsubmit="return false;">
		<dl class="n-form" style="box-shadow:0 0 14px #3891CA;border:1px solid #3891CA;width:400px;padding:40px 0px;margin:50px 0 0 50px;">
			<h3 style="text-align:center;margin-bottom:50px;font-size:30px;color:#3891CA;">中自榜[登录]</h3>
			<dt>用户名：</dt>
			<dd><input id="uname" name="uname" type="text" tips="管理员" value=""></dd>
			<dt>密　码：</dt>
			<dd><input id="password" name="password" type="password" /></dd>
			<dt>验证码：</dt>
			<dd><input id="vcode" name="vcode" type="text" style="width:70px" /><img src="<?=n_url('common','vcode')?>" /></dd>
			<dt>&nbsp;</dt>
			<dd>
				<button onclick="return dologin()" onfocus="this.blur()" alt="登 录" >登录</button>
				<div class="tips">&nbsp;</div>
			</dd>

		</dl>
		</form>
		
	</div>
</div>

<script>
	function dologin(){
		var vcode = $("#vcode").val()?$("#vcode").val():'';
		$.getJSON('/passport/dologin.html',{'uname':$("#uname").val(),'password':$("#password").val(),'vcode':vcode},function(cb){
			$(".tips").html(cb.msg);
			setTimeout(function(){
				if(cb.state){
					//alert(cb.referer);
					location.href = !!cb.referer?cb.referer:"<?=(defined('N_USER') && N_USER=='Y')?'/user/index.html':'/user/index.html'?>";
				}else if('Y'==cb.vcode){
					if(0==$('#vcode').length){
						location.reload();
					}else{
						$('#vcode').next('img').attr('src','/common/vcode.html?r'+new Date().getTime());
					}
				}
			},1000);
		});
	}
</script>




	</body>
</html>